<script src="assets/js/login/login.js"></script>
<div class="navbar navbar-inverse navbar-fixed-top">
  <div class="navbar-inner">
    <div class="container">
      <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="brand" href="#">Gia</a>
      <div class="nav-collapse collapse">
        <ul class="nav">
          <li <?php if($active_menu_item == "inicio") echo " class='active'";?> ><a href="index.php/welcome">Inicio</a></li>
          <li<?php if($active_menu_item == "pesquisa") echo " class='active'";?>><a href="index.php/search/pesquisa">Pesquisa</a></li>
          <li <?php if($active_menu_item == "sobre") echo " class='active'";?>><a href="index.php/welcome/sobre">Sobre</a></li>
        </ul>
        <form class="navbar-form pull-right" id="form_login">
          <input class="span2" type="text" placeholder="Email" name="username" id="username" >
          <input class="span2" type="password" placeholder="Senha" name="senha" id="senha">
          <button class="btn" onclick="login(); return false;">Entrar</button>
        </form>
      </div><!--/.nav-collapse -->
    </div>
  </div>
</div>

<!-- MODAL DE ERRO -->
<div class="modal fade" style="display: none">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title">Erro</h4>
      </div>
      <div class="modal-body">
        <p>Usuário ou senha inválidos!</p>
        <p>Tente novamente</p>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->